import { createRouter, createWebHashHistory } from "vue-router";

const custom = () => import("../views/custom/custom.vue")
const login = () => import("../views/login/login.vue")
const preview = () => import("../views/preview/preview.vue")
const test = () => import("../views/test/test.vue")
const marketAccess = () => import("../views/marketAccess/marketAccess.vue") //销售得分排行
const nianxiujia = () => import("../views/nianxiujia/nianxiujia.vue") //年休假日历
const map = () => import("../views/map/map.vue") //销售地图
const nianxiujiaTable = () => import("../views/nianxiujiaTable/nianxiujiaTable.vue") //年休假表格
const chuchaiTable = () => import("../views/chuchaiTable/chuchaiTable.vue") //销售分公司出差
const toubiaotongji = () => import("../views/xiaoshou-toubiaotongji/toubiaotongji.vue") //销售投标统计图
const draggable = () => import("../views/draggable/draggable.vue") //拖拽效果
const xinxibuPingFen = () => import("../views/xinxibuPingFen/xinxibuPingFen.vue") //信息部评分
const track = () => import("../views/xiaoshou-track/track.vue") //销售轨迹
const trzplatform = () => import("../views/trzplatform/trzplatform.vue") //投融资平台
const yiQingXinChou = () => import("../views/yiQingXinChou/yiQingXinChou.vue") //疫情薪酬
const foreignInto = () => import("../views/foreign-into/foreignInto.vue") //外来人员入厂
const foreignIntoSuccess = () => import("../views/foreign-into-Success/foreignIntoSuccess.vue") //外来人员入厂成功
const kqbb = () => import("../views/kqbb/kqbb.vue") //考勤报表
const jbts = () => import("../views/kqbb/jbts.vue") //交补天数
const xsrb = () => import("../views/xsrb/xsrb.vue") //销售日报
const lcxl = () => import("../views/lcxl/lcxl.vue") //流程效率
const routes = [
  { path: "/", redirect: "/lcxl" },
  {
    path: "/custom",
    name: "custom",
    component: custom
  },
  {
    path: "/login",
    name: "login",
    component: login
  },
  {
    path: "/preview",
    name: "preview",
    component: preview
  },
  {
    path: "/test",
    name: "test",
    component: test
  },
  {
    path: "/marketAccess/:user/fwljl1234yyy", //销售人员阶段性考核评分公示
    name: "marketAccess",
    component: marketAccess
  },
  {
    path: "/nianxiujia", //人资年休假
    name: "nianxiujia",
    component: nianxiujia
  },
  {
    path: "/map", //人资年休假
    name: "map",
    component: map
  },
  {
    path: "/nianxiujiaTable", //人资年休假
    name: "nianxiujiaTable",
    component: nianxiujiaTable
  },
  {
    path: "/chuchaiTable/:fwoooo933456", //销售分公司出差
    name: "chuchaiTable",
    component: chuchaiTable
  },
  {
    path: "/toubiaotongji/:uuuys66778", //销售分公司投标统计
    name: "toubiaotongji",
    component: toubiaotongji
  },
  {
    path: "/draggable", //销售人员阶段性考核评分公示
    name: "draggable",
    component: draggable
  },
  {
    path: "/xinxibuPingFen", //信息部评分
    name: "xinxibuPingFen",
    component: xinxibuPingFen
  },
  {
    path: "/track", //销售-轨迹
    name: "track",
    component: track
  },
  {
    path: "/trzplatform", //投融资平台
    name: "trzplatform",
    component: trzplatform
  },
  {
    path: "/yiQingXinChou", //疫情薪酬
    name: "yiQingXinChou",
    component: yiQingXinChou
  },
  {
    path: "/foreignInto", //外来人员入厂
    name: "foreignInto",
    component: foreignInto
  },
  {
    path: "/foreignIntoSuccess", //外来人员入厂
    name: "foreignIntoSuccess",
    component: foreignIntoSuccess
  },
  {
    path: "/kqbb", //考勤报表
    name: "kqbb",
    component: kqbb
  },
  {
    path: "/jbts", //交补天数
    name: "jbts",
    component: jbts
  },
  {
    path: "/xsrb", //销售日报
    name: "xsrb",
    component: xsrb
  },
  {
    path: "/lcxl", //流程效率
    name: "lcxl",
    component: lcxl
  },
]
// 在Vue-router新版本中，需要使用createRouter来创建路由
export const router = createRouter({
  // 指定路由的模式，此处使用的是hash模式
  history: createWebHashHistory(),
  // 路由地址
  routes: routes
})